import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import apps from './qiankun.js';
import { registerMicroApps, addGlobalUncaughtErrorHandler } from 'qiankun';
// 引入pina
import { createPinia } from 'pinia';
const pinia=createPinia()
// 注册微应用
registerMicroApps(apps);

// 全局的未捕获异常处理器
addGlobalUncaughtErrorHandler((event) => {
  console.log(event);
});

createApp(App).use(pinia).use(router).mount('#app');
